package com.hengxinguotong.zhihuichengjian.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/4/17.
 */

public class JumpBean {
    private Class<?> jumpClass;
    private List<IntentBean> intentBeanList = new ArrayList<IntentBean>();
    private int icon = -1;
    private int smallIcon = -1;

    public JumpBean(int icon) {
        this.icon = icon;
    }


    public JumpBean(int icon, Class<?> jumpClass) {
        this.icon = icon;
        this.jumpClass = jumpClass;
    }

    public JumpBean(int icon, int smallIcon, Class<?> jumpClass) {
        this.icon = icon;
        this.jumpClass = jumpClass;
        this.smallIcon = smallIcon;
    }


    public JumpBean(int icon, Class<?> jumpClass, String name, Integer value) {
        this.icon = icon;
        this.jumpClass = jumpClass;
        addIntentBean(name, value);
    }

    public JumpBean(int icon, int smallIcon, Class<?> jumpClass, String name, Integer value) {
        this.icon = icon;
        this.smallIcon = smallIcon;
        this.jumpClass = jumpClass;
        addIntentBean(name, value);
    }

    public Class<?> getJumpClass() {
        return jumpClass;
    }

    public void setJumpClass(Class<?> jumpClass) {
        this.jumpClass = jumpClass;
    }

    public void addIntentBean(String name, Integer value) {
        IntentBean intentBean = new IntentBean(name, value);
        intentBeanList.add(intentBean);
    }

    public List<IntentBean> getIntentBeanList() {
        return intentBeanList;
    }

    public void setIntentBeanList(List<IntentBean> intentBeanList) {
        this.intentBeanList = intentBeanList;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public int getSmallIcon() {
        return smallIcon;
    }

    public void setSmallIcon(int smallIcon) {
        this.smallIcon = smallIcon;
    }
}
